﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Transactions;

namespace Pg.BioMedics.SDR.Data.Strategy
{
    /// <summary>
    /// Manages not transactional transaction managment strategy. this strategy doesn nothing 
    /// when transaction managment routines are invoked
    /// </summary>
    internal class NoTransactionStrategy : ITransactionStrategy
    {
        #region ITransactionStrategy Members

        /// <summary>
        /// Gets null value inidicating that transaction is not supported
        /// </summary>
        public Transaction Transaction
        {
            get 
            {
                return null;
            }
        }

        public void Begin() { }

        public void Complete() { }

        public void Close() { }

        #endregion
    }
}
